package com.shse.sale.dao;

import com.shse.sale.meta.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Created by shse on 3/18/2016.
 * 用户dao
 */
@Repository
public interface UserDao {

    /**
     * 通过用户名+密码获取符合条件的用户
     * @param userName
     * @param password
     * @return
     */
    @Select("select * from users where userName=#{userName} and password=#{password}")
    public User login(@Param("userName") String userName, @Param("password") String password);
}
